var FADE_IN_TIME = 500; //页面淡入动画时间
/* usermodel 属性名 */
var USER_MODEL = "userModel";
var USER_GUID = "persGuid";
var USER_ID = "persId";
var LOGIN_ID = "loginId";
var LOGIN_PSW = " loginPass ";
var USER_NAME = "persName";
var USER_TYPE = "userType"; //用户类型 包括共建用户、工业用户、园区
var USER_DEPT_GUID = "deptGuid";
var USER_DEPT_ID = "deptId";
var USER_DEPT_NAME = "deptName";
var USER_DEPT_ROOT_ID = "deptRootID";
var USER_IP = "ip";
var USER_GENDER = "sex";
var USER_FIX_PHONE = "telephone";
var USER_MOBILE_PHONE = "mobilehone";
var USER_EMAIL = "email";
var USER_BASE_PATH = "basePath";
var INDEX_PAGE_URL = "indexPageUrl";
var AGENT = "agent";
var AUTO_LOGIN = "login";
var DEVICE_LIST = "deviceList";
var DEVICE_NUM = "deviceNum";
var UNREAD_MSG_NUM = "unreadMsgNum";
var SETTING_INIT = "settingInit" //个人中心初始化（boolean）
var SWITCH_MSG_CENTER = "msgCenterPush"; //消息中心推送
var SWITCH_ENERGY_SAVING_INFO = "informationPush"; //节能资讯开关
var SWITCH_SHARE = "switch_share";
var JOIN_RANK = "joinRank"; //是否加入用能排名
var MONTH_ACCOUNT_DAY = "accountDay"; //月度结算日
var ENERGY_LIMIT_INFO = "energyLimitInfo"; //年度用能限额
var SEARCH_HISTORY = "searchHistory"; //消息搜索历史

//提示语
var BAD_NETWORK = "当前网络不给力";
var VERSION_NUMBER = 1;
var VERSION_NAME = "versionName";
var AJAX_REQUEST_ERROR = "网络请求失败";
var MONITOR_SITE_CHANGE = "monitor_site_change";
var TASK_YJXZ = "/sdxsms/sdxsMissionPageController/knowledgeBasedown.do";
var GETKOWNLEDGE="/sdxsms/sdxsMissionPageController/getkonwledgeBase.do"

var USER_TYPES = {
	"01": "公建用户",
	"02": "工业用户",
	"03": "园区用户"
};
var INVITATION_CODE_TYPE = {
	"01": "注册邀请码",
	"02": "试用邀请码"
};
var LIMIT_USE_TYPE = {
	"01": "按去年用能比率",
	"02": "月度平均"
};

var HANDLE_MSG_TYPE = {
	"REMIND": "01", //提醒处理
	"INGORE": "02", //忽略处理
	"SELF": "03" //自己处理
};

var SUBSCRIBE_TYPE = {
	"PHONE": "01",
	"APP": "02",
	"EMAIL": "03"
}
/**
 * 问题类型编码
 * PERFORMANCE:性能优化
 * PRODUCT_DEFECT：产品缺陷
 * OTHER： 其他
 */
var PROBLEM_TYPE = {
	PRODUCT_DEFECT: "5500901",
	PERFORMANCE: "5500902",
	OTHER: "5500903"
}
var LIST_TYPE_CODE = {
	WSL: "02",
	JXZ: "03,22",
	QB: "02,03,22"
}

//登录模块
var LOGIN_URL = "/permission/account/login.do"; //登录
var TEST_ROLE = "/permission/account/hasRole.do"; //角色判断
var LOGIN_TEST_ROLE = "/ydgUser_two/service/common/hasRole.do"; //角色判断（2018-3-1新增加的接口，原来的接口无法满足新需求）
var CHECK_INVITATION_CODE = "/permission/account/validateInviCode.do"; //校验邀请码
var GET_PHONE_CODE = "/tickenergy/smsCodeSend/createValidateCode.do"; //获取手机验证码
var CHECK_PASSWORD_CODE = "/tickenergy/smsCodeSend/getPersenInfoByCheckCode.do"; //校验忘记密码验证码
var CHANGE_PASSWORD = "/permission/account/modify.do"; //修改密码

//消息列表
var GET_COUNT_OF_UNREAD_MESSAGE = "/tickenergy/bizMessage/msg/count.do"; //获取未读消息数
var GET_MESSAGE_LIST = "/tickenergy/bizMessage/msg/msgList.do"; //获取消息列表
var GET_MESSAGE_DETAIL = "/tickenergy/bizMessage/msg/msgDetail.do"; //获取消息详情
var HANDLE_MESSAGE = "/tickenergy/bizMessage/msg/msgHandle.do"; //消息处理
var GET_HOT_KETWORDS = "/tickenergy/bizMessage/msg/keywordInitialData.do"; //获取热门搜索关键字

//传递pushInfo
var GET_APP_PUSH_INFO = "/appPushApp/appPush/getAppPushInfo.do";
//人员位置
var PERS_LOCATION = "/ydgUser_two/service/common/persLocation.do";
//未读消息数量
var GET_UNREAD_NUM = "/tickenergy/message/unreadMessage/unreadNum.do";

//三方登录
var OAUTH_LOGIN = "/oauthModule/public/oauth/login.do"

//3.1 获取服务、公司信息
var GET_SERVICE_INFO = "/appPushApp/appPush/common/getServiceInfo.do";

//获取版本信息接口
var GET_APK_VERSION = "/mobile-service/mobilecommon/jcgx.do";
/**
 * 缺陷性质 
 */
var CHECK_LOGIN  = "/permission/account/login.do";
/**
 * 设置是否记住密码
 * @param {Object} value
 */
function setIsRememberPwd(value) {
	localStorage.setItem('isRememberPwd', value);
};

/**
 * 获取是否记住密码
 *  @return isRememberPwd
 */
function getIsRememberPwd() {
	var isRememberPwd = localStorage.getItem('isRememberPwd');
	return isRememberPwd;
};
var BugNature = {
	// 一般
	commonly: '0300101',
	// 严重
	serious: '0300102',
	// 危急
	critical: '0300103'
}

/**
 *  角色编码
 */
var Role = {
	//电工
	Electrician: 'E3101',
	// 用户
	User: 'E3200',
	//管理
	Manager: 'E3100'

}
/**
 *  角色ID
 */
var RoleId = {
	//电工
	Electrician: '40289596562fbb5901562fe417c50003',
	// 用户
	User: '40289596562fbb5901562fe848560004',
	//管理
	Manager: '40289596562fbb5901562fe3b8490002'

}

//模块配置状态：显示、隐藏、置灰
var AppConfigureState = {
	Visible: "visible",
	Hidden: "hidden",
	Disabled: "disabled"
}
var AppConfigure = {
	//登录模块
	"LoginModule": {
		"ServiceAddress": AppConfigureState.Visible
	},
	//公共模块
	"CommonModule": {
		"AutoUpdate": AppConfigureState.Visible
	}
}

/*
 * 意见反馈接口
 */


var GETBASE_IMAGE = "/sdxsms/sdxsMissionPageController/fjxz_base64.do";

var GETFKD="/sdxsms/sdxsMissionPageController/getFkd.do";


var POSTFANKUI="/sdxsms/sdxsMissionPageController/postFkd.do";
var GETEVENT="/sdxsms/sdxsMissionPageController/getEvent.do";
var GETBIAODAOCOUNT="/sdxsms/sdxsMissionPageController/getBdCount.do";
var GETBDLIST="/sdxsms/sdxsMissionPageController/getBDList.do";
var GETSGCLIST="/sdxsms/sdxsMissionPageController/getSGCList.do";
var GETSGTZ="/sdxsms/sdxsMissionPageController/getSGTz.do";
var GETSGZT="/sdxsms/sdxsMissionPageController/getSgState.do";
var GETSGLL="/sdxsms/sdxsMissionPageController/getSGLL.do";
var GETSXT="/sdxsms/sdxsMissionPageController/getAccesstoken.do";
var UPDATETOKEN="/sdxsms/sdxsMissionPageController/updateToken.do";
var GETSHB='/sdxsms/sdxsMissionPageController/getMDZ.do';
